package com.buba.springboot.redis;

import redis.clients.jedis.Jedis;

public class RedisJedisUtil {

    public static void main(String[] args) {
        //ip地址，端口号
        Jedis jedis = new Jedis("127.0.0.1",6379);
        jedis.set("hello", "我是redis");
        String value = jedis.get("key");
        System.out.println(value);
        jedis.expire("hello",10);

    }


}
